package com.zh.jbet.core.service;

import com.zh.jbet.core.entity.BaseEntity;
import javax.swing.tree.DefaultMutableTreeNode;

/**
 *
 * @author golyo
 */
public interface TreeService<T extends BaseEntity> extends EntityService<T>{
    public void saveRootNode(DefaultMutableTreeNode root);
    
    public DefaultMutableTreeNode getRootNodeById(Long id);


    public void deleteNode(DefaultMutableTreeNode context);

    //public void updateGame(GameContext context, T match);

    /*
    public GameContext getGameContextById(Long id);

    public List<GameContext> findRootContexts(String sort, int start, int count);
    public int count(T filterEntity);

    public List<T> findByFilter(T filterEntity, String sort, int start, int count);
     * 
     */
}
